package com.zx.oa.dao.ClassInfo;

import com.zx.oa.entity.CheckJob;
import com.zx.oa.entity.ClassInfo;
import com.zx.oa.entity.Major;

import java.util.List;

public interface ClassInfoDao {

    List<ClassInfo> getClassInfo(String major);

    boolean addClassInfo(String name, String major);

    ClassInfo getClassInfo(int classId);

    boolean modifyClassInfo(String name, String major, int classId);

    boolean deleteClassInfo(int id);

    boolean deleteCheckJobInfo(int id);

    int getClassInfoTotalCount(String type);

    List<ClassInfo> getClassInfo(String type, int currentPageNo, int pageSize);

    List<CheckJob> getClassInfo(String major, String className, String studentName, String date, String result, int currentPageNo, int pageSize);

    List<CheckJob> getClassInfo(String major,String classname,String month);

    List<ClassInfo> getClassInfoByStudyType(String major);

    List<Major> getMajorAll();

    List<ClassInfo> getClassAll(String majorName);

    List<CheckJob> getJob();

    boolean updateJob(int id, String cktime, String ckstatu);

    int getClassTotalCount(String major, String className, String studentName, String date, String result);
}
